package com.jiaai.shop.store.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.jiaai.shop.store.entity.SOrder;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author
 * @since 2018-04-12
 */
@Mapper
public interface SOrderMapper extends BaseMapper<SOrder> {

    /**
     * 搜索所有
     * */
    @Select("SELECT * \n" +
            "FROM s_order \n" +
            "ORDER BY  createTime DESC")
    List<Map<String,Object>> seachOrderAll(Page page);
}